package info.magnolia.blossom.sample.cv.service;

import org.jaxen.function.StringFunction;

import javax.jcr.Node;
import javax.jcr.RepositoryException;
import java.io.Serializable;

/**
 * Created with IntelliJ IDEA.
 * User: peterbalazs
 * Date: 2/22/13
 * Time: 2:07 PM
 * To change this template use File | Settings | File Templates.
 */
public interface MapperService {

    public void storeObject(final String repository, final String relPath, final Serializable object) throws RepositoryException;

    public void storeObject(final Node node, final Serializable object) throws RepositoryException;

    public Serializable getObject(final String repository, final String relPath, final Class<? extends Serializable> objectClass) throws RepositoryException, InstantiationException;

    public Serializable getObject(final Node node, final Class<? extends Serializable> objectClass) throws RepositoryException, InstantiationException;
}
